<?php if(empty($node_id)) $node_id = null;?>
<div class="addthis_native_toolbox"></div>
<div class="control-page">
    <a href="#" class="control-pglink"><i class="glyphicon glyphicon-arrow-left"></i>Về trang trước </a>
    <a href="#" class="control-pglink ct-bfline"><i class="glyphicon glyphicon-arrow-up"></i>Lên trang đầu </a>
</div>
<div class="main-form comment-form">
    <?php  
        echo $this->Form->create('Comment', array('url' => array('plugin'=>'View','controller'=>'View','action'=>'comments'),
                'method'=> 'post',
                'class'=>'form-horizontal form-comments'
            )); 
    ?>
    <form class="form-horizontal">
        <div class="form-group">
            <div class="col-sm-12">
                <?php echo $this->Form->input('content', array('type' =>'textarea','label' =>false,'div'=>false,'id'=>"wd-request",'class'=>'form-control comment-content','placeholder'=>__d('default',"Ý kiến của bạn"),'cols'=>"30",'rows'=>"5"));?>
            </div>
        </div>
        <div class="form-group form-group-inline">
            <div class="col-sm-3 col-sm-cus">
                <?php echo $this->Form->input('fullname', array('type' =>'text','label' =>false,'div'=>false,'class' => 'form-control comment-fullname','placeholder'=>__d('default',"Họ tên")));?>
            </div>
            <div class="col-sm-3 col-sm-cus">
                <?php echo $this->Form->input('email', array('type' =>'text','label' =>false,'div'=>false,'class' => 'form-control comment-email','placeholder'=>__d('default',"Email")));?>
            </div>
            <div class="col-sm-3 img-check">
                <img id="captcha" src="<?php echo $this->Html->url('/view/view/captcha_image');?>" alt="" width="136" height="33" />
                <a href="javascript:void(0);" onclick="javascript:document.images.captcha.src='<?php echo $this->Html->url('/view/view/captcha_image');?>?' + Math.round(Math.random(0)*1000)+1"><span class="wd-refresh">&nbsp;</span></a>
            </div>
            <div class="col-sm-2 col-sm-cus">
                <?php echo $this->Form->input('capcha', array('type' =>'text','label' =>false,'div'=>false,'class' => 'form-control comment-capcha','placeholder'=>__d('default',"Mã code")));?>
            </div>
            <input type="hidden" name="data[Comment][node_id]" value="<?php echo $node_id;?>">
            <div class="col-sm-2 col-sm-cus tar capcha-last">
                <button type="submit" class="btn btn-default btn-default-red-sm btn-comments"><?php echo __d('default','Gửi ý kiến');?></button>
            </div>
        </div>
    </form>
</div>